package model

// GENERIC HEADER/通用头块	32
type GenericHeader struct {
	MagicNumber  int32    // len:4
	MajorVersion int16    // len:2
	MinorVersion int16    // len:2
	GenericType  int32    // len:4
	ProductType  int32    // len:4
	Res1         [16]byte // len:16
}

// SITE CONFIGURATION/站点配置块 128
type SiteConfiguration struct {
	SiteCode      [8]byte
	SiteName      [32]byte
	Latitude      float32
	Longitude     float32
	AntennaHeight int32
	GroundHeight  int32
	Frequency     float32
	BeamWidthHori float32
	BeamWidthVert float32
	RdaVersion    int32
	RadarType     int16
	AntennaGain   int16
	TransLoss     int16
	RecvLoss      int16
	OtherLoss     int16
	Res1          [46]byte
}

// TASK CONFIGURATION /任务配置块 256
type TaskConfiguration struct {
	TaskName      [32]byte
	TaskDsc       [128]byte
	PolarType     int32
	ScanType      int32
	PulseWidth    int32
	ScanStartTime int32
	CutNumber     int32
	HoriNoise     float32
	VertNoise     float32
	HoriCali      float32
	VertCali      float32
	HoriTmp       float32
	VertTmp       float32
	ZDRCali       float32
	PHIDPCali     float32
	LDRCali       float32
	Res3          [40]byte
}
